package cn.suhaoblog.oss.entity;

import lombok.Getter;

import java.io.Serializable;

@Getter
public class OSSFile implements Serializable {
    // OSS中保存的路径
    private String url;

    // 原始文件名
    private String originalName;

    // bucketName
    private String bucketName;

    // 所在文件夹
    private String folder;

    // 上传以后的文件名
    private String name;

    public OSSFile setUrl(String url) {
        this.url = url;
        return this;
    }

    public OSSFile setOriginalName(String originalName) {
        this.originalName = originalName;
        return this;
    }

    public OSSFile setBucketName(String bucketName) {
        this.bucketName = bucketName;
        return this;
    }

    public OSSFile setFolder(String folder) {
        this.folder = folder;
        return this;
    }

    public OSSFile setName(String name) {
        this.name = name;
        return this;
    }

    public void end() {
    }
}
